package edu.osu.cse.c651.cryptochess;

/**
 * Represents a row,column pair that describes the location of a square on the
 * chess board
 * 
 * @author Team Pawned
 * 
 */
public class Coordinate {

	/**
	 * The row of this Coordinate
	 */
	int x;

	/**
	 * The column of this coordinate
	 */
	int y;

	/**
	 * Constructor
	 * 
	 * @param x
	 *            the row
	 * @param y
	 *            the column
	 */
	public Coordinate(int x, int y) {
		this.x = x;
		this.y = y;
	}

	/**
	 * Returns the row of this Coordinate
	 * 
	 * @return int the row of this Coordinate
	 */
	public int x() {
		return x;
	}

	/**
	 * Returns the column of this Coordinate
	 * 
	 * @return int the column of this Coordinate
	 */
	public int y() {
		return y;
	}
}
